#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_control_clicked()
{
    bool crd=ui->controled->isEnabled();
    if(crd==false)
    {
        ui->controled->setEnabled(true);
    }
    else
         ui->controled->setEnabled(false);
}
